Completed
Push — master ( 54b84a...25fb7a )
by Esaú
02:10
created

➔ UnsupportedCharsetException   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
nop 2
1
// UnsupportedCharsetException.js
2
"use strict";
3
4
// :: DEPENDENCIES
5
6
// load native dependencies
7 1
const path = require("path");
8
9
// load local dependencies
10 1
const IllegalArgumentException = require(path.join(__dirname, "IllegalArgumentException.js"));
11
12
// :: BASIC SETUP
13
14
/**
15
 * Unchecked exception thrown when a string that is not a legal charset name is used as such.
16
 * @param {String} message - The message describing the <tt>UnsupportedCharsetException</tt>.
17
 * @param {Number} code - The unique code that identifies the cause of the <tt>UnsupportedCharsetException</tt>.
18
 * @augments IllegalArgumentException
19
 * @constructor
20
 * @see https://docs.oracle.com/javase/8/docs/api/java/nio/charset/UnsupportedCharsetException.html
21
 */
22 1
const UnsupportedCharsetException = function (message, code) {
23 197
	IllegalArgumentException.call(this, message, code);
24
};
25
26
// :: INHERITANCE
27
28
// set the IllegalArgumentException 'class' as the parent in the prototype chain
29 1
UnsupportedCharsetException.prototype             = Object.create(IllegalArgumentException.prototype);
30 1
UnsupportedCharsetException.prototype.constructor = IllegalArgumentException;
31
32
// :: PROTOTYPE
33
34
/**
35
 * The name used to identify a <tt>UnsupportedCharsetException</tt>.
36
 * @type {String}
37
 * @default
38
 */
39 1
UnsupportedCharsetException.prototype.name = "UnsupportedCharsetException";
40
41
// :: EXPORT
42
43
// export the UnsupportedCharsetException 'class'
44
module.exports = UnsupportedCharsetException;